package com.example.rbacmanage.service;

import com.example.rbacmanage.base.BaseService;
import com.example.rbacmanage.common.Result;
import com.example.rbacmanage.entity.User;
import com.example.rbacmanage.vo.MyUserDetails;
import com.example.rbacmanage.vo.UserLoginReq;
import com.example.rbacmanage.vo.UserRegisterReq;
import com.github.pagehelper.PageInfo;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

public interface UserService extends BaseService<User> {
    String login(UserLoginReq req);

    String register(UserRegisterReq req);

    MyUserDetails getLoginInfo();

    PageInfo<User> getAssignUserPage(User user);

    PageInfo<User> getUnAssignUserPage(User user);

    public User getByUsername(String username);

    Result importUser(MultipartFile file,Integer updateSupport);

    void exportUser(HttpServletResponse response);
}
